﻿using System;
using System.IO.Pipes;

namespace IoTSignalR
{
    //工厂模式
    public class PipeServerFactory
    {
        //生产服务
        public static NamePipeServer CreatePipeServer(string pipeName,
            PipeDirection direction,
            int maxNumberOfServerInstances,
            PipeTransmissionMode transmissionMode,
            PipeOptions options)
        {
            return new NamePipeServer(pipeName, direction, maxNumberOfServerInstances, transmissionMode, options);
        }
    }
}
